<?php 
 require_once '../../Controller/Controller.CadastroUsuario.php'; 
 $pedido = new DaoCadastrarUsuario(); 
 $resultado = $pedido->getPedidos() ;
?>
<?php require 'cabecalho.php'; ?>
<div id="miolo">
    <div id="categorias">
        <?php require_once 'menu_categorias.php'; ?>
    </div>	
            <div id="conteudo2">
                <div class="containers">            
            <form name="cad_usuario" action="usuario-pedido-viasualizar.php" method="POST">
			<div>
				<p class="titulo-cadastro">Hist&oacute;rico de Pedidos</p>
				<table summary="">
                                    <?php
                                    if (isset($_COOKIE['_jg@$&#drgt']) and isset($_COOKIE['_nbg&*$#@j']))
                                      while ($row = mysql_fetch_array($resultado)) { ?> 
                                        <tr align="left">
                                            <td><strong>N&uacute;mero do Pedido.:</strong>&nbsp;<?php echo $row['ped_id']; ?>
                                                <input type="radio" name="ped_id" value="<?php echo $row['ped_id']; ?>"/>   
                                                &nbsp;<strong><input type="submit" value="Selecione" class="bt_buscar"/></strong>
                                            </td>                                            
                                        </tr>
                                        <tr align="left">
                                            <td><strong>Status.:&nbsp;</strong><?php echo $row['ped_status']; ?></td>
                                        </tr>
                                        <tr align="left">
                                            <td><strong>Data da Compra.:&nbsp;</strong><?php echo $row['ped_data']; ?></td>
                                        </tr>
                                        <tr align="left"> 
                                            <td><strong>Valor da Compra.:&nbsp;</strong><?php echo $row['ped_valorTotal']; ?></td>
                                        </tr>
                                        <tr>
                                        
                                            <td><strong><?php echo '&nbsp;&nbsp;'; ?></strong></td>  
                                        </tr>    
                                     <?php }?>                                    				    	
				</table>				
			</div>
               </form>	
                    <div align="center">
                        <a href="javascript:history.back()"><input type="button" value="Voltar" class="bt_buscar"/></a>                   
                    </div>
                </div>
            </div>     
	</div>
	<div id="rodape">
		<div id="busca">
			<form>
				Buscar em 
				<select name="buscaTipo" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
					<option value="o"></option>
					<option value="autor">Autor</option>
					<option value="titulo">Titulo</option>
					<option value="">Editora</option>			
				</select>
				<input type="text" name="buscador" class="cx_buscar" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                <input type="submit" value="Buscar" class="bt_buscar"/>		
			</form>	
		</div>
		
	</div>
</div>
</body>

</html>